package com.ares.stude.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Controller
@SpringBootApplication
public class vueDemonController {
    private static final Logger log = LoggerFactory.getLogger(vueDemonController.class);

    @RequestMapping("/vueDemon")
    public String helloHtml(HashMap<String,Object> map){
        map.put("hello","我是马斌");
        map.put("other","other 马斌");
        List<String> testList = new ArrayList<>();
        testList.add("aresblank");
        map.put("list",testList);
        return"vueDemon/vueDemon";
    }

    @RequestMapping("/vueItem")
    public String vueItem(){
        return"vueDemon/vueItem";
    }

    @RequestMapping("vueDataMethod")
    public String vueDataMethod(){
        return"vueDemon/vueDataMethod";
    }


    @RequestMapping("vueCalculation")
    public String vueCalculation(){
        return"vueDemon/vueCalculation";
    }

    @RequestMapping("vueWatch")
    public String vueWatch(){
        return"vueDemon/vueWatch";
    }
}

